projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109b670
)
(diff-find-file-name): Only accept regular files, to rule out
author
Glenn Morris
<rgm@gnu.org>
Mon, 27 Aug 2007 07:10:50 +0000
(07:10 +0000)
committer
Glenn Morris
<rgm@gnu.org>
Mon, 27 Aug 2007 07:10:50 +0000
(07:10 +0000)
/dev/null, directories, etc.
lisp/diff-mode.el
patch
|
blob
|
history
diff --git
a/lisp/diff-mode.el
b/lisp/diff-mode.el
index e0aee67a62b0f59b7da1744361028217e6602ba7..7cd7375ab98fc8d0d8e290f25e2c92cdfe48bd36 100644
(file)
--- a/
lisp/diff-mode.el
+++ b/
lisp/diff-mode.el
@@
-646,7
+646,9
@@
PREFIX is only used internally: don't use it."
((or (null files)
(setq file (do* ((files files (cdr files))
(file (car files) (car files)))
- ((or (null file) (file-exists-p file))
+ ;; Use file-regular-p to avoid
+ ;; /dev/null, directories, etc.
+ ((or (null file) (file-regular-p file))
file))))
file))
;; <foo>.rej patches implicitly apply to <foo>